.tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #efefef;
    box-shadow: 0 48px 80px -32px rgba(0,0,0,0.3);
    position: fixed;
    top:0;
}
.input {
    position: absolute;
    opacity: 0;
}
.label {
    width: 33.33%;
    padding: 10px 20px;
    background: #e5e5e5;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    color: #7f7f7f;
    transition: background 0.1s, color 0.1s;
}

.label:hover {
    background: #d8d8d8;
}

.label:active {
    background: #ccc;
}

.input:focus + .label {
    /*box-shadow: inset 0px 0px 0px 3px #2aa1c0;*/
    /*z-index: 1;*/
}

.input:checked + .label {
    background: #fff;
    color: #000;
}

@media (min-width: 600px) {
    .label {
        width: auto;
    }
}

.panel {
    display: none;
    padding: 20px 30px 30px;
    background: #fff;
}

.input:checked + .label + .panel {
    display: block;
}